﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MP/backend.Master" AutoEventWireup="true" CodeBehind="NganhNghe.aspx.cs" Inherits="TimViec.backend.NganhNghe" MaintainScrollPositionOnPostback="true" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <h4 class="alert_info">Quản lý danh mục ngành nghề , chuyên môn</h4>
    <div class="module width_full">
        <div class="p_10">
            <asp:Literal ID="lbNganhNgheId" runat="server" Visible="false"></asp:Literal>
            <table cellpadding="0" cellspacing="0" width="100%">
                <tr>
                    <td valign="top" style="width:40%;">
                        <table cellpadding="0" cellspacing="10">
                            <tr>
                                <td><strong>Ngành nghề,<br />chuyên môn</strong></td>
                                <td><asp:TextBox ID="txtTen" runat="server" Width="300px"></asp:TextBox></td>
                            </tr>
                            <tr>
                                <td><strong>Phân loại</strong></td>
                                <td>
                                    <asp:DropDownList ID="droPhanLoai" runat="server">
                                        <asp:ListItem Value="0">Ngành nghề</asp:ListItem>
                                        <asp:ListItem Value="1">Chuyên môn</asp:ListItem>
                                    </asp:DropDownList>
                                </td>
                            </tr>
                            <tr>
                                <td></td>
                                <td>
                                    <asp:Button ID="btSave" runat="server" CssClass="buttonNew" Text="Lưu lại" OnClick="btSave_Click" />
                                    <asp:Button ID="btUpdate" runat="server" CssClass="buttonNew" Text="Cập nhật" Visible="false"
                                        OnClick="btUpdate_Click" />
                                    <asp:Button ID="btcancel" runat="server" CssClass="buttonCancel" Text="Hủy bỏ" CausesValidation="false"
                                        OnClick="btcancel_Click" />
                                </td>
                            </tr>
                        </table>
                    </td>
                    <td valign="top">
                        <table cellpadding="0" cellspacing="10">
                            <tr>
                                <td><strong>Phân loại</strong> <asp:DropDownList ID="droPhanLoaiSearch" runat="server">
                                        <asp:ListItem Value="0">Ngành nghề</asp:ListItem>
                                        <asp:ListItem Value="1">Chuyên môn</asp:ListItem>
                                    </asp:DropDownList>
                                </td>
                                <td><strong>Từ khóa</strong> <asp:TextBox ID="txtSearch" runat="server" Width="300px"></asp:TextBox></td>
                                <td>
                                    <asp:Button ID="btSearch" runat="server" Text="Tìm kiếm" CssClass="buttonNew" 
                                        onclick="btSearch_Click" />
                                </td>
                            </tr>
                        </table>
                        <table cellpadding="0" cellspacing="0" width="100%" class="tablesorter">
                            <thead>
                                <tr>
                                    <th>STT</th>
                                    <th>Tên ngành nghề/Chuyên môn</th>
                                    <th>Phân loại</th>
                                    <th>Chức năng</th>
                                </tr>
                            </thead>
                            <asp:Repeater ID="rptNganhNghe" runat="server" 
                                onitemcommand="rptNganhNghe_ItemCommand">
                                <ItemTemplate>
                                    <tr>
                                        <td><%#Container.ItemIndex +1 %></td>
                                        <td>
                                            <%#Eval("Ten")%>
                                        </td>
                                        <td>
                                            <%#Eval("PhanLoai")%>
                                        </td>
                                        <td>
                                            <asp:LinkButton ID="lbtEdit" runat="server" CommandName="Edit"
                                                CommandArgument='<%#Eval("NganhNgheId") %>' ToolTip="Cập nhật" CausesValidation="false"><img src="../images/backend/icn_edit.png" /></asp:LinkButton>
                                        </td>
                                    </tr>
                                </ItemTemplate>
                            </asp:Repeater>
                        </table>
                    </td>
                </tr>
            </table>
        </div>
    </div>
</asp:Content>
